.class public Lcom/estrongs/fs/impl/local/a;
.super Ljava/lang/Object;
.source "DocumentRWUtil.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/fs/impl/local/a$b;
    }
.end annotation


# static fields
.field public static a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/fs/impl/local/a$b;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    return-void
.end method

.method public static a(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 8
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 11
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 12
    invoke-static {p0, v1}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;Z)Landroid/net/Uri;

    move-result-object v0

    goto :goto_0

    .line 13
    :cond_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    :goto_0
    const/4 v2, 0x0

    if-nez v0, :cond_1

    return-object v2

    .line 14
    :cond_1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 15
    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 16
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    if-eqz v3, :cond_2

    if-eqz v4, :cond_2

    .line 17
    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_2

    instance-of v6, v5, Les/z60;

    if-eqz v6, :cond_2

    .line 18
    check-cast v5, Les/z60;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v7

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v7, v3

    invoke-virtual {p0, v1, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    iput-object p0, v5, Les/z60;->R:Ljava/lang/String;

    .line 19
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-virtual {p0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object p0

    .line 20
    :try_start_0
    invoke-virtual {p0, v0}, Landroid/content/ContentResolver;->openOutputStream(Landroid/net/Uri;)Ljava/io/OutputStream;

    move-result-object p0
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    return-object v2
.end method

.method private static a()Ljava/util/List;
    .locals 8
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/impl/local/a$b;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/ContentResolver;->getPersistedUriPermissions()Ljava/util/List;

    move-result-object v1

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 3
    :goto_0
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_1

    .line 4
    :try_start_0
    new-instance v4, Lcom/estrongs/fs/impl/local/a$b;

    invoke-direct {v4}, Lcom/estrongs/fs/impl/local/a$b;-><init>()V

    .line 5
    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/content/UriPermission;

    invoke-virtual {v5}, Landroid/content/UriPermission;->getUri()Landroid/net/Uri;

    move-result-object v5

    iput-object v5, v4, Lcom/estrongs/fs/impl/local/a$b;->a:Landroid/net/Uri;

    .line 6
    invoke-static {v5}, Landroid/provider/DocumentsContract;->getTreeDocumentId(Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v5

    const/16 v6, 0x3a

    .line 7
    invoke-virtual {v5, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v6

    if-gtz v6, :cond_0

    goto :goto_1

    .line 8
    :cond_0
    invoke-virtual {v5, v2, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v4, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    add-int/lit8 v6, v6, 0x1

    .line 9
    invoke-virtual {v5, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    .line 10
    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;Ljava/lang/Runnable;)V
    .locals 2
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ljava/lang/Runnable;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 27
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 28
    new-instance v0, Lcom/estrongs/fs/impl/local/a$a;

    invoke-direct {v0, p2, p1, p0, p3}, Lcom/estrongs/fs/impl/local/a$a;-><init>(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;Ljava/lang/Runnable;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->b(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 29
    :cond_0
    invoke-interface {p3}, Ljava/lang/Runnable;->run()V

    :goto_0
    return-void
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 3
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 22
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 23
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p0

    if-nez p0, :cond_1

    return v1

    .line 24
    :cond_1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-virtual {p0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object p0

    .line 25
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 26
    invoke-static {p0, v0, p1}, Landroid/provider/DocumentsContract;->renameDocument(Landroid/content/ContentResolver;Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz p0, :cond_2

    const/4 v1, 0x1

    :catch_0
    :cond_2
    return v1
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 0
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 21
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;Z)Landroid/net/Uri;

    move-result-object p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method public static declared-synchronized b(Ljava/lang/String;)Landroid/net/Uri;
    .locals 15
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    const-class v0, Lcom/estrongs/fs/impl/local/a;

    monitor-enter v0

    .line 30
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-string v1, "/"

    .line 31
    invoke-virtual {p0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_0

    .line 32
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    sub-int/2addr v1, v3

    invoke-virtual {p0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    .line 33
    :cond_0
    sget-object v1, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_1

    .line 34
    invoke-static {}, Lcom/estrongs/fs/impl/local/a;->b()V

    :cond_1
    const/4 v1, 0x0

    .line 35
    :goto_0
    sget-object v4, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    const/4 v5, 0x0

    if-ge v1, v4, :cond_3

    .line 36
    sget-object v4, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/fs/impl/local/a$b;

    .line 37
    iget-object v6, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {p0, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_4

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v7, "/"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p0, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_2

    goto :goto_1

    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_3
    move-object v4, v5

    .line 38
    :cond_4
    :goto_1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    .line 39
    invoke-static {}, Lcom/estrongs/fs/impl/local/a;->a()Ljava/util/List;

    move-result-object v6

    if-nez v4, :cond_7

    .line 40
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v7, :cond_5

    .line 41
    monitor-exit v0

    return-object v5

    .line 42
    :cond_5
    :try_start_1
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v8

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v9

    if-le v8, v9, :cond_6

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v8

    add-int/2addr v8, v3

    invoke-virtual {p0, v8}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    goto :goto_3

    :cond_6
    move-object p0, v5

    goto :goto_3

    .line 43
    :cond_7
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v7

    iget-object v8, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-le v7, v8, :cond_8

    iget-object v7, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    add-int/2addr v7, v3

    invoke-virtual {p0, v7}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    goto :goto_2

    :cond_8
    move-object p0, v5

    :goto_2
    move-object v7, v5

    :goto_3
    if-eqz p0, :cond_9

    .line 44
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_9

    move-object p0, v5

    :cond_9
    if-eqz v4, :cond_e

    const/4 v8, 0x0

    .line 45
    :goto_4
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v9

    if-ge v8, v9, :cond_e

    .line 46
    invoke-interface {v6, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/estrongs/fs/impl/local/a$b;

    .line 47
    iget-object v10, v9, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    if-eqz v10, :cond_b

    iget-object v10, v9, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v10

    if-nez v10, :cond_a

    goto :goto_5

    :cond_a
    const/4 v10, 0x0

    goto :goto_6

    :cond_b
    :goto_5
    const/4 v10, 0x1

    :goto_6
    if-nez p0, :cond_c

    const/4 v11, 0x1

    goto :goto_7

    :cond_c
    const/4 v11, 0x0

    .line 48
    :goto_7
    iget-object v12, v9, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    iget-object v13, v4, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    invoke-virtual {v12, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_d

    if-nez v10, :cond_f

    if-nez v11, :cond_d

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v11, v9, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "/"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_f

    iget-object v10, v9, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {p0, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v10
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v10, :cond_d

    goto :goto_8

    :cond_d
    add-int/lit8 v8, v8, 0x1

    goto :goto_4

    :cond_e
    move-object v9, v5

    :cond_f
    :goto_8
    if-nez v9, :cond_21

    .line 49
    :try_start_2
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v6
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-nez v6, :cond_10

    .line 50
    monitor-exit v0

    return-object v5

    .line 51
    :cond_10
    :try_start_3
    const-class v8, Les/v80$h;

    const/4 v9, 0x3

    new-array v10, v9, [Ljava/lang/Object;

    if-nez v4, :cond_11

    move-object v11, v7

    goto :goto_9

    :cond_11
    iget-object v11, v4, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    :goto_9
    aput-object v11, v10, v2

    if-nez v4, :cond_12

    .line 52
    invoke-static {v7}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    goto :goto_a

    :cond_12
    iget-object v11, v4, Lcom/estrongs/fs/impl/local/a$b;->d:Ljava/lang/String;

    :goto_a
    aput-object v11, v10, v3

    const/4 v11, 0x2

    .line 53
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v12

    aput-object v12, v10, v11

    .line 54
    invoke-virtual {v6, v8, v10}, Les/s80;->a(Ljava/lang/Class;[Ljava/lang/Object;)Les/v80$c;

    move-result-object v6

    check-cast v6, Les/v80$h;

    .line 55
    iget-object v8, v6, Les/v80$h;->i:Ljava/lang/String;

    .line 56
    invoke-static {v8}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_13

    const-string v8, "unknown"

    .line 57
    :cond_13
    iget-object v10, v6, Les/v80$h;->e:Landroid/net/Uri;

    if-eqz v10, :cond_1f

    iget v10, v6, Les/v80$c;->c:I

    const/4 v11, 0x4

    if-eq v10, v11, :cond_14

    goto/16 :goto_f

    .line 58
    :cond_14
    new-instance v10, Lcom/estrongs/fs/impl/local/a$b;

    invoke-direct {v10}, Lcom/estrongs/fs/impl/local/a$b;-><init>()V

    .line 59
    iget-object v11, v6, Les/v80$h;->e:Landroid/net/Uri;

    iput-object v11, v10, Lcom/estrongs/fs/impl/local/a$b;->a:Landroid/net/Uri;

    .line 60
    invoke-static {v11}, Landroid/provider/DocumentsContract;->getTreeDocumentId(Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v11

    const/16 v12, 0x3a

    .line 61
    invoke-virtual {v11, v12}, Ljava/lang/String;->indexOf(I)I

    move-result v12

    if-gtz v12, :cond_16

    .line 62
    iget-boolean p0, v6, Les/v80$h;->j:Z

    if-nez p0, :cond_15

    const-string p0, "fail"

    .line 63
    iget-boolean v1, v6, Les/v80$h;->h:Z

    const-string v2, "swrong"

    invoke-static {p0, v1, v8, v2}, Lcom/estrongs/fs/impl/local/b;->a(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V

    .line 64
    iput-boolean v3, v6, Les/v80$h;->j:Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 65
    :cond_15
    monitor-exit v0

    return-object v5

    .line 66
    :cond_16
    :try_start_4
    invoke-virtual {v11, v2, v12}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v10, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    add-int/2addr v12, v3

    .line 67
    invoke-virtual {v11, v12}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v10, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    if-eqz v11, :cond_18

    .line 68
    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v11

    if-nez v11, :cond_17

    goto :goto_b

    :cond_17
    const/4 v11, 0x0

    goto :goto_c

    :cond_18
    :goto_b
    const/4 v11, 0x1

    :goto_c
    if-nez p0, :cond_19

    const/4 v12, 0x1

    goto :goto_d

    :cond_19
    const/4 v12, 0x0

    :goto_d
    if-eqz v4, :cond_1a

    .line 69
    iget-object v13, v10, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    iget-object v14, v4, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    invoke-virtual {v13, v14}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_1b

    :cond_1a
    if-nez v11, :cond_1d

    if-nez v12, :cond_1b

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v12, v10, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "/"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 70
    invoke-virtual {p0, v11}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v11

    if-nez v11, :cond_1d

    iget-object v11, v10, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    invoke-virtual {p0, v11}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1b

    goto :goto_e

    .line 71
    :cond_1b
    iget-boolean p0, v6, Les/v80$h;->j:Z

    if-nez p0, :cond_1c

    const-string p0, "fail"

    .line 72
    iget-boolean v1, v6, Les/v80$h;->h:Z

    const-string v2, "uwrong"

    invoke-static {p0, v1, v8, v2}, Lcom/estrongs/fs/impl/local/b;->a(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V

    .line 73
    iput-boolean v3, v6, Les/v80$h;->j:Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 74
    :cond_1c
    monitor-exit v0

    return-object v5

    .line 75
    :cond_1d
    :goto_e
    :try_start_5
    iget-object v11, v10, Lcom/estrongs/fs/impl/local/a$b;->a:Landroid/net/Uri;

    invoke-virtual {v1, v11, v9}, Landroid/content/ContentResolver;->takePersistableUriPermission(Landroid/net/Uri;I)V

    .line 76
    iget-boolean v1, v6, Les/v80$h;->j:Z

    if-nez v1, :cond_1e

    const-string v1, "suc"

    .line 77
    iget-boolean v9, v6, Les/v80$h;->h:Z

    invoke-static {v1, v9, v8, v5}, Lcom/estrongs/fs/impl/local/b;->a(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V

    .line 78
    iput-boolean v3, v6, Les/v80$h;->j:Z

    .line 79
    :cond_1e
    iput-boolean v2, v6, Les/v80$c;->a:Z

    move-object v9, v10

    goto :goto_10

    .line 80
    :cond_1f
    :goto_f
    iget-boolean p0, v6, Les/v80$h;->j:Z

    if-nez p0, :cond_20

    const-string p0, "fail"

    .line 81
    iget-boolean v1, v6, Les/v80$h;->h:Z

    invoke-static {p0, v1, v8, v5}, Lcom/estrongs/fs/impl/local/b;->a(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)V

    .line 82
    iput-boolean v3, v6, Les/v80$h;->j:Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 83
    :cond_20
    monitor-exit v0

    return-object v5

    .line 84
    :catch_0
    monitor-exit v0

    return-object v5

    .line 85
    :cond_21
    :goto_10
    :try_start_6
    iget-object v1, v9, Lcom/estrongs/fs/impl/local/a$b;->a:Landroid/net/Uri;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v9, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ":"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-nez p0, :cond_22

    const-string p0, ""

    :cond_22
    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v1, p0}, Landroid/provider/DocumentsContract;->buildDocumentUriUsingTree(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p0

    if-eqz p0, :cond_23

    if-nez v4, :cond_23

    .line 86
    new-instance v1, Lcom/estrongs/fs/impl/local/a$b;

    invoke-direct {v1}, Lcom/estrongs/fs/impl/local/a$b;-><init>()V

    .line 87
    iput-object v7, v1, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    .line 88
    iget-object v2, v9, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    iput-object v2, v1, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    .line 89
    invoke-static {v7}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/fs/impl/local/a$b;->d:Ljava/lang/String;

    .line 90
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    iget-object v3, v1, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    invoke-virtual {v2, v7, v3}, Lcom/estrongs/android/pop/l;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 91
    sget-object v2, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 92
    :cond_23
    monitor-exit v0

    return-object p0

    .line 93
    :catch_1
    monitor-exit v0

    return-object v5

    :catchall_0
    move-exception p0

    monitor-exit v0

    goto :goto_12

    :goto_11
    throw p0

    :goto_12
    goto :goto_11
.end method

.method static b(Ljava/lang/String;Z)Landroid/net/Uri;
    .locals 4
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 94
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 95
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz p1, :cond_1

    const-string p1, "vnd.android.document/directory"

    goto :goto_0

    .line 96
    :cond_1
    invoke-static {v2}, Lcom/estrongs/android/util/n0;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    :goto_0
    const-string v3, "*/*"

    .line 97
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->c(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_3

    :cond_2
    const-string p1, "application/octet-stream"

    .line 98
    :cond_3
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-virtual {p0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object p0

    invoke-static {p0, v0, p1, v2}, Landroid/provider/DocumentsContract;->createDocument(Landroid/content/ContentResolver;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    return-object v1
.end method

.method public static declared-synchronized b()V
    .locals 15

    const-class v0, Lcom/estrongs/fs/impl/local/a;

    monitor-enter v0

    .line 1
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    const-string v2, "storage"

    invoke-virtual {v1, v2}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/os/storage/StorageManager;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v1, :cond_0

    .line 3
    monitor-exit v0

    return-void

    .line 4
    :cond_0
    :try_start_1
    const-class v2, Landroid/os/storage/StorageManager;

    const-string v3, "getVolumeList"

    const/4 v4, 0x0

    new-array v5, v4, [Ljava/lang/Class;

    invoke-virtual {v2, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    const-string v3, "android.os.storage.StorageVolume"

    .line 5
    invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v3

    const-string v5, "getPath"

    new-array v6, v4, [Ljava/lang/Class;

    .line 6
    invoke-virtual {v3, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v5

    const-string v6, "getState"

    new-array v7, v4, [Ljava/lang/Class;

    .line 7
    invoke-virtual {v3, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v6

    const-string v7, "getUuid"

    new-array v8, v4, [Ljava/lang/Class;

    .line 8
    invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v7

    const-string v8, "isPrimary"

    new-array v9, v4, [Ljava/lang/Class;

    .line 9
    invoke-virtual {v3, v8, v9}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v8

    const-string v9, "isEmulated"

    new-array v10, v4, [Ljava/lang/Class;

    .line 10
    invoke-virtual {v3, v9, v10}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v9

    const-string v10, "getUserLabel"

    new-array v11, v4, [Ljava/lang/Class;

    .line 11
    invoke-virtual {v3, v10, v11}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v3

    .line 12
    sget v10, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v11, 0x18

    if-lt v10, v11, :cond_1

    .line 13
    invoke-virtual {v1}, Landroid/os/storage/StorageManager;->getStorageVolumes()Ljava/util/List;

    move-result-object v1

    new-array v2, v4, [Landroid/os/storage/StorageVolume;

    .line 14
    invoke-interface {v1, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Landroid/os/storage/StorageVolume;

    goto :goto_0

    :cond_1
    new-array v10, v4, [Ljava/lang/Object;

    .line 15
    invoke-virtual {v2, v1, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Landroid/os/storage/StorageVolume;

    .line 16
    :goto_0
    array-length v2, v1

    const/4 v10, 0x0

    :goto_1
    if-ge v10, v2, :cond_9

    aget-object v11, v1, v10

    new-array v12, v4, [Ljava/lang/Object;

    .line 17
    invoke-virtual {v6, v11, v12}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/lang/String;

    const-string v13, "mounted"

    .line 18
    invoke-virtual {v13, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-nez v13, :cond_3

    const-string v13, "mounted_ro"

    invoke-virtual {v13, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_2

    goto :goto_2

    :cond_2
    const/4 v12, 0x0

    goto :goto_3

    :cond_3
    :goto_2
    const/4 v12, 0x1

    :goto_3
    if-nez v12, :cond_4

    goto :goto_5

    :cond_4
    new-array v12, v4, [Ljava/lang/Object;

    .line 19
    invoke-virtual {v5, v11, v12}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/lang/String;

    new-array v13, v4, [Ljava/lang/Object;

    .line 20
    invoke-virtual {v8, v11, v13}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/Boolean;

    invoke-virtual {v13}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v13

    if-eqz v13, :cond_5

    new-array v13, v4, [Ljava/lang/Object;

    invoke-virtual {v9, v11, v13}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/Boolean;

    invoke-virtual {v13}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v13

    if-eqz v13, :cond_5

    const-string v13, "primary"

    goto :goto_4

    :cond_5
    new-array v13, v4, [Ljava/lang/Object;

    .line 21
    invoke-virtual {v7, v11, v13}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/String;

    :goto_4
    if-nez v13, :cond_6

    .line 22
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v13

    invoke-virtual {v13, v12}, Lcom/estrongs/android/pop/l;->v(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    :cond_6
    if-eqz v13, :cond_8

    new-array v14, v4, [Ljava/lang/Object;

    .line 23
    invoke-virtual {v3, v11, v14}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    .line 24
    new-instance v14, Lcom/estrongs/fs/impl/local/a$b;

    invoke-direct {v14}, Lcom/estrongs/fs/impl/local/a$b;-><init>()V

    .line 25
    iput-object v12, v14, Lcom/estrongs/fs/impl/local/a$b;->c:Ljava/lang/String;

    .line 26
    iput-object v13, v14, Lcom/estrongs/fs/impl/local/a$b;->b:Ljava/lang/String;

    if-nez v11, :cond_7

    .line 27
    invoke-static {v12}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    :cond_7
    iput-object v11, v14, Lcom/estrongs/fs/impl/local/a$b;->d:Ljava/lang/String;

    .line 28
    sget-object v11, Lcom/estrongs/fs/impl/local/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v11, v14}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :cond_8
    :goto_5
    add-int/lit8 v10, v10, 0x1

    goto :goto_1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1

    .line 29
    :catch_0
    :cond_9
    monitor-exit v0

    return-void
.end method

.method private static c(Ljava/lang/String;)Z
    .locals 6

    const/16 v0, 0x29

    new-array v1, v0, [Ljava/lang/String;

    const-string v2, ".h"

    const/4 v3, 0x0

    aput-object v2, v1, v3

    const-string v2, ".php"

    const/4 v4, 0x1

    aput-object v2, v1, v4

    const/4 v2, 0x2

    const-string v5, ".checksum"

    aput-object v5, v1, v2

    const/4 v2, 0x3

    const-string v5, ".js"

    aput-object v5, v1, v2

    const/4 v2, 0x4

    const-string v5, ".rss"

    aput-object v5, v1, v2

    const/4 v2, 0x5

    const-string v5, ".ini"

    aput-object v5, v1, v2

    const/4 v2, 0x6

    const-string v5, ".jsp"

    aput-object v5, v1, v2

    const/4 v2, 0x7

    const-string v5, ".asp"

    aput-object v5, v1, v2

    const/16 v2, 0x8

    const-string v5, ".properties"

    aput-object v5, v1, v2

    const/16 v2, 0x9

    const-string v5, ".aspx"

    aput-object v5, v1, v2

    const/16 v2, 0xa

    const-string v5, ".prop"

    aput-object v5, v1, v2

    const/16 v2, 0xb

    const-string v5, ".c"

    aput-object v5, v1, v2

    const/16 v2, 0xc

    const-string v5, ".conf"

    aput-object v5, v1, v2

    const/16 v2, 0xd

    const-string v5, ".java"

    aput-object v5, v1, v2

    const/16 v2, 0xe

    const-string v5, ".classpath"

    aput-object v5, v1, v2

    const/16 v2, 0xf

    const-string v5, ".vb"

    aput-object v5, v1, v2

    const/16 v2, 0x10

    const-string v5, ".project"

    aput-object v5, v1, v2

    const/16 v2, 0x11

    const-string v5, ".vbs"

    aput-object v5, v1, v2

    const/16 v2, 0x12

    const-string v5, ".ppx"

    aput-object v5, v1, v2

    const/16 v2, 0x13

    const-string v5, ".xlsm"

    aput-object v5, v1, v2

    const/16 v2, 0x14

    const-string v5, ".gz"

    aput-object v5, v1, v2

    const/16 v2, 0x15

    const-string v5, ".xlsb"

    aput-object v5, v1, v2

    const/16 v2, 0x16

    const-string v5, ".docx"

    aput-object v5, v1, v2

    const/16 v2, 0x17

    const-string v5, ".pptx"

    aput-object v5, v1, v2

    const/16 v2, 0x18

    const-string v5, ".docm"

    aput-object v5, v1, v2

    const/16 v2, 0x19

    const-string v5, ".ppsm"

    aput-object v5, v1, v2

    const/16 v2, 0x1a

    const-string v5, ".xlsx"

    aput-object v5, v1, v2

    const/16 v2, 0x1b

    const-string v5, ".xla"

    aput-object v5, v1, v2

    const/16 v2, 0x1c

    const-string v5, ".ical"

    aput-object v5, v1, v2

    const/16 v2, 0x1d

    const-string v5, ".xlc"

    aput-object v5, v1, v2

    const/16 v2, 0x1e

    const-string v5, ".icalendar"

    aput-object v5, v1, v2

    const/16 v2, 0x1f

    const-string v5, ".xlm"

    aput-object v5, v1, v2

    const/16 v2, 0x20

    const-string v5, ".esi"

    aput-object v5, v1, v2

    const/16 v2, 0x21

    const-string v5, ".jar"

    aput-object v5, v1, v2

    const/16 v2, 0x22

    const-string v5, ".mht"

    aput-object v5, v1, v2

    const/16 v2, 0x23

    const-string v5, ".xqf"

    aput-object v5, v1, v2

    const/16 v2, 0x24

    const-string v5, ".m4v"

    aput-object v5, v1, v2

    const/16 v2, 0x25

    const-string v5, ".f4v"

    aput-object v5, v1, v2

    const/16 v2, 0x26

    const-string v5, ".ts"

    aput-object v5, v1, v2

    const/16 v2, 0x27

    const-string v5, ".flv"

    aput-object v5, v1, v2

    const/16 v2, 0x28

    const-string v5, ".m2ts"

    aput-object v5, v1, v2

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    if-eqz p0, :cond_1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_1

    .line 2
    aget-object v5, v1, v2

    .line 3
    invoke-virtual {v5, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    return v4

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    return v3
.end method

.method public static c(Ljava/lang/String;Z)Z
    .locals 1
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 4
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p0

    const/4 p1, 0x0

    if-nez p0, :cond_0

    return p1

    .line 5
    :cond_0
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    invoke-static {v0, p0}, Landroid/provider/DocumentsContract;->deleteDocument(Landroid/content/ContentResolver;Landroid/net/Uri;)Z

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    return p1
.end method

.method public static d(Ljava/lang/String;)Z
    .locals 2
    .annotation build Landroidx/annotation/RequiresApi;
        api = 0x15
    .end annotation

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 4
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/a;->d(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return p0

    :cond_0
    const/4 v0, 0x1

    .line 5
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/a;->a(Ljava/lang/String;Z)Z

    move-result p0

    return p0
.end method
